﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace EzDesk.Utility
{
    public class ErrorLog : EzDesk.Utility.IErrorLog
    {
        public static ErrorLog Instance
        {
            get
            {
                return GenericDictionary<ErrorLog>.Instance;
            }
        }
        public void WriteLog(Exception ex, string LogName, int EventType)
        {
            WriteLog(ex.Message, LogName, EventType);
        }
        public void WriteLog(string message, string LogName, int EventType)
        {
            Debug.WriteLine(DateTime.Now.ToString());
            Debug.WriteLine(string.Format("\t{0}\n\r\t{1}\n\r\t{2}\n\r", message, LogName, EventType));         
        }
    }
}
